﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using App.Interface;
using App.MVC.App_Start;

namespace App.MVC.Controllers
{
    public class PersonalCenterController : BaseController
    {
        // GET: PersonalCenter
        public IJiaoZhiGong _IJiaoZhiGong { set; get; }
        public ActionResult Index()
        {
            return View();
        }
        [HttpPost]
        public void ChangePassword(string oldpassword,string newpassword)
        {
            _IJiaoZhiGong.UpdatePassword(SiteInfo.GetUserName(), oldpassword, newpassword);
        }
    }
}